package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Value;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName t_sf_final_statement_detail
 */
@TableName(value ="t_sf_final_statement_detail")
@Data
public class FinalStatement implements Serializable {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 商户id
     */
    private Long businessId;

    /**
     * 解约协议ID
     */
    private Long tSfTerminationId;

    /**
     * 解约协议编号
     */
    private String sfTerminationNo;

    /**
     * 收房合同ID
     */
    private Long sfContractId;

    /**
     * 收房合同编号
     */
    private String sfContractNo;

    /**
     * 收付类型，1:应退 2：应收
     */
    private Integer dealType;

    /**
     * 款项（费用类型）1:押金，2：房租，3,：水费，4：电费，5：煤/燃气费,99:其它
     */
    private Integer itemType;

    /**
     * 金额(元)
     */
    private BigDecimal amount;

    /**
     * 备注
     */
    private String remark;

    /**
     * 预留字段1
     */
    private BigDecimal reserve1;

    /**
     * 预留字段2
     */
    private Integer reserve2;

    /**
     * 预留字段3
     */
    private String reserve3;

    /**
     * 预留字段4
     */
    private String reserve4;

    /**
     * 预留字段5
     */
    private String reserve5;



    /**
     * 删除标识，0:未删除，1：删除
     */
    private Integer delFlg;

    /**
     * 创建用户ID
     */
    private Long createUserid;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 更新用户ID
     */
    private Long updateUserid;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FinalStatement that = (FinalStatement) o;
        return Objects.equals(id, that.id) && Objects.equals(businessId, that.businessId) && Objects.equals(tSfTerminationId, that.tSfTerminationId) && Objects.equals(sfTerminationNo, that.sfTerminationNo) && Objects.equals(sfContractId, that.sfContractId) && Objects.equals(sfContractNo, that.sfContractNo) && Objects.equals(dealType, that.dealType) && Objects.equals(itemType, that.itemType) && Objects.equals(amount, that.amount) && Objects.equals(remark, that.remark) && Objects.equals(reserve1, that.reserve1) && Objects.equals(reserve2, that.reserve2) && Objects.equals(reserve3, that.reserve3) && Objects.equals(reserve4, that.reserve4) && Objects.equals(reserve5, that.reserve5) && Objects.equals(delFlg, that.delFlg) && Objects.equals(createUserid, that.createUserid) && Objects.equals(createTime, that.createTime) && Objects.equals(updateUserid, that.updateUserid) && Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, businessId, tSfTerminationId, sfTerminationNo, sfContractId, sfContractNo, dealType, itemType, amount, remark, reserve1, reserve2, reserve3, reserve4, reserve5, delFlg, createUserid, createTime, updateUserid, updateTime);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", businessId=").append(businessId);
        sb.append(", tSfTerminationId=").append(tSfTerminationId);
        sb.append(", sfTerminationNo=").append(sfTerminationNo);
        sb.append(", sfContractId=").append(sfContractId);
        sb.append(", sfContractNo=").append(sfContractNo);
        sb.append(", dealType=").append(dealType);
        sb.append(", itemType=").append(itemType);
        sb.append(", amount=").append(amount);
        sb.append(", remark=").append(remark);
        sb.append(", reserve1=").append(reserve1);
        sb.append(", reserve2=").append(reserve2);
        sb.append(", reserve3=").append(reserve3);
        sb.append(", reserve4=").append(reserve4);
        sb.append(", reserve5=").append(reserve5);
        sb.append(", delFlg=").append(delFlg);
        sb.append(", createUserid=").append(createUserid);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUserid=").append(updateUserid);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}